<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyivtbinventaCreateDlg" widgetVar="PyivtbinventaCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreatePyivtbinventaTitle}">

            <h:form id="PyivtbinventaCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{pyivtbinventaController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_descripcion}" for="descripcion" />
                        <p:inputText id="descripcion" value="#{pyivtbinventaController.selected.descripcion}" title="#{myBundle.CreatePyivtbinventaTitle_descripcion}" required="true" requiredMessage="#{myBundle.CreatePyivtbinventaRequiredMessage_descripcion}"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_marca}" for="marca" />
                        <p:inputText id="marca" value="#{pyivtbinventaController.selected.marca}" title="#{myBundle.CreatePyivtbinventaTitle_marca}" required="true" requiredMessage="#{myBundle.CreatePyivtbinventaRequiredMessage_marca}"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_modelo}" for="modelo" />
                        <p:inputText id="modelo" value="#{pyivtbinventaController.selected.modelo}" title="#{myBundle.CreatePyivtbinventaTitle_modelo}" required="true" requiredMessage="#{myBundle.CreatePyivtbinventaRequiredMessage_modelo}"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_serie}" for="serie" />
                        <p:inputText id="serie" value="#{pyivtbinventaController.selected.serie}" title="#{myBundle.CreatePyivtbinventaTitle_serie}" required="true" requiredMessage="#{myBundle.CreatePyivtbinventaRequiredMessage_serie}"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_valorpresup}" for="valorpresup" />
                        <p:inputText id="valorpresup" value="#{pyivtbinventaController.selected.valorpresup}" title="#{myBundle.CreatePyivtbinventaTitle_valorpresup}" required="true" requiredMessage="#{myBundle.CreatePyivtbinventaRequiredMessage_valorpresup}"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_valoradqu}" for="valoradqu" />
                        <p:inputText id="valoradqu" value="#{pyivtbinventaController.selected.valoradqu}" title="#{myBundle.CreatePyivtbinventaTitle_valoradqu}" required="true" requiredMessage="#{myBundle.CreatePyivtbinventaRequiredMessage_valoradqu}"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_materialpred}" for="materialpred" />
                        <p:inputText id="materialpred" value="#{pyivtbinventaController.selected.materialpred}" title="#{myBundle.CreatePyivtbinventaTitle_materialpred}" required="true" requiredMessage="#{myBundle.CreatePyivtbinventaRequiredMessage_materialpred}"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_numerofactura}" for="numerofactura" />
                        <p:inputText id="numerofactura" value="#{pyivtbinventaController.selected.numerofactura}" title="#{myBundle.CreatePyivtbinventaTitle_numerofactura}" required="true" requiredMessage="#{myBundle.CreatePyivtbinventaRequiredMessage_numerofactura}"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_fechacompra}" for="fechacompra" />
                        <p:calendar id="fechacompra" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyivtbinventaController.selected.fechacompra}" title="#{myBundle.EditPyivtbinventaTitle_fechacompra}" required="true" requiredMessage="#{myBundle.EditPyivtbinventaRequiredMessage_fechacompra}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_caracteristicas}" for="caracteristicas" />
                        <p:inputText id="caracteristicas" value="#{pyivtbinventaController.selected.caracteristicas}" title="#{myBundle.CreatePyivtbinventaTitle_caracteristicas}" required="true" requiredMessage="#{myBundle.CreatePyivtbinventaRequiredMessage_caracteristicas}"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_refactaentrega}" for="refactaentrega" />
                        <p:inputText id="refactaentrega" value="#{pyivtbinventaController.selected.refactaentrega}" title="#{myBundle.CreatePyivtbinventaTitle_refactaentrega}" required="true" requiredMessage="#{myBundle.CreatePyivtbinventaRequiredMessage_refactaentrega}"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_codbien}" for="codbien" />
                        <p:inputText id="codbien" value="#{pyivtbinventaController.selected.codbien}" title="#{myBundle.CreatePyivtbinventaTitle_codbien}" required="true" requiredMessage="#{myBundle.CreatePyivtbinventaRequiredMessage_codbien}"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyivtbinventaController.selected.fecharegistro}" title="#{myBundle.EditPyivtbinventaTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditPyivtbinventaRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyivtbinventaController.selected.observaciones}" title="#{myBundle.CreatePyivtbinventaTitle_observaciones}" required="true" requiredMessage="#{myBundle.CreatePyivtbinventaRequiredMessage_observaciones}"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_scittbescunid}" for="scittbescunid" />
                        <p:selectOneMenu id="scittbescunid" value="#{pyivtbinventaController.selected.scittbescunid}" required="true" requiredMessage="#{myBundle.EditPyivtbinventaRequiredMessage_scittbescunid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scittbescunController.items}"
                                           var="scittbescunidItem"
                                           itemValue="#{scittbescunidItem}"
                                           itemLabel="#{scittbescunidItem.scittbescunid.toString()}"
                                           />
                            <f:converter binding="#{scittbescunConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_pyivtbusobienid}" for="pyivtbusobienid" />
                        <p:selectOneMenu id="pyivtbusobienid" value="#{pyivtbinventaController.selected.pyivtbusobienid}" required="true" requiredMessage="#{myBundle.EditPyivtbinventaRequiredMessage_pyivtbusobienid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyivtbusobienController.items}"
                                           var="pyivtbusobienidItem"
                                           itemValue="#{pyivtbusobienidItem}"
                                           itemLabel="#{pyivtbusobienidItem.pyivtbusobienid.toString()}"
                                           />
                            <f:converter binding="#{pyivtbusobienConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_pyivtbestabienid}" for="pyivtbestabienid" />
                        <p:selectOneMenu id="pyivtbestabienid" value="#{pyivtbinventaController.selected.pyivtbestabienid}" required="true" requiredMessage="#{myBundle.EditPyivtbinventaRequiredMessage_pyivtbestabienid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyivtbestabienController.items}"
                                           var="pyivtbestabienidItem"
                                           itemValue="#{pyivtbestabienidItem}"
                                           itemLabel="#{pyivtbestabienidItem.pyivtbestabienid.toString()}"
                                           />
                            <f:converter binding="#{pyivtbestabienConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_pyivtbcolorid}" for="pyivtbcolorid" />
                        <p:selectOneMenu id="pyivtbcolorid" value="#{pyivtbinventaController.selected.pyivtbcolorid}" required="true" requiredMessage="#{myBundle.EditPyivtbinventaRequiredMessage_pyivtbcolorid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyivtbcolorController.items}"
                                           var="pyivtbcoloridItem"
                                           itemValue="#{pyivtbcoloridItem}"
                                           itemLabel="#{pyivtbcoloridItem.pyivtbcolorid.toString()}"
                                           />
                            <f:converter binding="#{pyivtbcolorConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreatePyivtbinventaLabel_pydgtbactivpoaid}" for="pydgtbactivpoaid" />
                        <p:selectOneMenu id="pydgtbactivpoaid" value="#{pyivtbinventaController.selected.pydgtbactivpoaid}" required="true" requiredMessage="#{myBundle.EditPyivtbinventaRequiredMessage_pydgtbactivpoaid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbactivpoaController.items}"
                                           var="pydgtbactivpoaidItem"
                                           itemValue="#{pydgtbactivpoaidItem}"
                                           itemLabel="#{pydgtbactivpoaidItem.descripcion.toString()}"
                                           />
                            <f:converter binding="#{pyfntbactivpoaConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyivtbinventaController.saveNew}" value="#{myBundle.Save}" update="display,:PyivtbinventaListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyivtbinventaCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyivtbinventaCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
